class Ping < ActiveRecord::Base
  belongs_to :sender, :class_name => 'User', :foreign_key => 'user_id'
  belongs_to :recipient, :class_name => 'User', :foreign_key => 'recipient_id'
  
  def self.store(user_id, recipient_id, body, location_identifier, :aka)
    
    create(:user_id => user_id, :recipient_id => recipient_id, :body => body, :location_identifier => location_identifier, :stored => true)
  end

end
